package com.quectel.core.module.alarm.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.quectel.core.module.alarm.entity.AlarmRuleEntity;

import java.util.List;
import java.util.Map;

/**
 * @author caolu
 * @email louis.cao@quectel.com
 * @date 2019-05-31 12:25:24
 */

public interface AlarmRuleDao extends BaseMapper<AlarmRuleEntity> {
    /**
     * 查询列表
     *
     * @param params
     * @return
     */
    List<AlarmRuleEntity> queryList(Map<String, Object> params);

    /**
     * 查询数量
     *
     * @param params
     * @return
     */
    int queryTotal(Map<String, Object> params);

    List<AlarmRuleEntity> queryAll(Map<String, Object> params);

    /**
     * 小区id关联查询告警规则
     * @param params
     * @return
     */
    /*List<AlarmRuleEntity> queryListByVillageId(Map<String, Object> params);*/

}
